<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #output{
            width: 200px;
            height: 200px;
            background: #ccc;
        }

    </style>
</head>
<body>
    <div id="output"></div>
    <script>
        var output = document.getElementById('output')
        // output.onclick = function() {
        //     console.log(6666)
        // }
        // output.onclick = function() {
        //     console.log(7777)
        // }

        output.addEventListener('click', function() {
            console.log(6666)
        })

        output.addEventListener('click', function() {
            console.log(777)
        })
    </script>
</body>
</html>